home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / AMICUS / AMICUS18.ADF / Progs / SetPrefs / setprefs.doc < prev    next >
Text File  |  1989-01-27  |  3KB  |  67 lines

  1. SetPrefs.c
  2.  
  3.    SetPrefs, Copyright (C) 1987 by W.G.J. Langeveld
  4.  
  5.    Description:
  6.    ------------
  7.        Have you ever had the problem that you reassigned all your system 
  8.        directories to your hard disk or to another floppy or to your re-
  9.        coverable ram disk, and at some point changed and saved your Pre-
  10.        ferences, but to the wrong place?   So that when you have to boot
  11.        you wind up with  the same old preferences that AmigaDOS picks up
  12.        from the system-configuration file on the floppy you boot from?
  13.            If so, this is a program for you. You run it in your startup-
  14.        sequence AFTER you have reassigned especially devs: to your other
  15.        device. This program will then read the system-configuration file
  16.        in the new devs: directory and set your default preferences accor-
  17.        dingly.
  18.            Moreover,  if you just want to use  the preferences from some
  19.        other disk or  file, you can  specify it on  the command line: in 
  20.        that case the  program will  search for the specified file rather
  21.        than 'devs:system-configuration'.
  22.  
  23.    Examples of use:
  24.    ----------------
  25.    (1) A sample startup-sequence might look like:
  26.  
  27.        assign C: hd0:c
  28.        assign S: hd0:s
  29.        assign L: hd0:l
  30.        assign FONTS: hd0:fonts
  31.        assign DEVS: hd0:devs
  32.        assign LIBS: hd0:libs
  33.        assign SYS: hd0:
  34.  
  35.        echo "Everything reassigned"
  36.  
  37.        SetPrefs
  38.  
  39.    (2) Suppose I  would like to  have the colors I get when booting from
  40.        my DrofNats program disk, but don't want to boot from it. I could
  41.        either get into Preferences  and set the colors from memory, or I
  42.        could type from the CLI:
  43.  
  44.        1> SetPrefs DrofNats:devs/system-configuration
  45.  
  46.        If the DrofNats disk  is not in a drive, AmigaDOS will prompt you
  47.        to insert it.
  48.  
  49.    (3) Suppose I have a hard disk (I don't)  but would like to change the
  50.        set-up on occasion,   because e.g.  sometimes I  use  a  different
  51.        monitor than other times. One might have several system-configura-
  52.        tion files stashed  away someplace,  and change to any one of them 
  53.        by typing from the CLI:
  54.  
  55.        1> SetPrefs :configfiles/config25
  56.  
  57.        You can make config files by going into preferences, saving them
  58.        and copying the resulting system-configuration file (Preferences
  59.        always writes to devs:system-configuration):
  60.  
  61.        1> copy devs:system-configuration :configfiles/config25
  62.  
  63.  
  64.    Have fun!
  65.                Willy.
  66.  
  67.